import request from '../network/request';

// 商品列表
export const index = (query) => {
    return request({
        url: 'index.php/index/Good/index',
        method: 'POST',
        data: query
    });
};

// 商品详情
export const content = (query) => {
    return request({
        url: 'index.php/index/Good/content',
        method: 'POST',
        data: query
    });
};

// 下单商品
export const add = (query) => {
    return request({
        url: 'index.php/index/Good/add',
        method: 'POST',
        data: query
    });
};


// 商品下单记录
export const order = (query) => {
    return request({
        url: 'index.php/index/Good/order',
        method: 'POST',
        data: query
    });
};

// 积分赠送
export const transfer = (query) => {
    return request({
        url: 'index.php/index/Port/transfer',
        method: 'POST',
        data: query
    });
};

// 积分赠送记录
export const transferorder = (query) => {
    return request({
        url: 'index.php/index/Port/transferorder',
        method: 'POST',
        data: query
    });
};

// 被赠送人可用积分
export const transfer_port = (query) => {
    return request({
        url: 'index.php/index/Port/transfer_port',
        method: 'POST',
        data: query
    });
};

// 个人信息
export const indexs = (query) => {
    return request({
        url: 'index.php/index/Login/index',
        method: 'POST',
        data: query
    });
};